<?php
$tdataperferences=array();
	$tdataperferences[".NumberOfChars"]=80; 
	$tdataperferences[".ShortName"]="perferences";
	$tdataperferences[".OwnerID"]="";
	$tdataperferences[".OriginalTable"]="perferences";


	
//	field labels
$fieldLabelsperferences = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsperferences["English"]=array();
	$fieldToolTipsperferences["English"]=array();
	$fieldLabelsperferences["English"]["id"] = "Id";
	$fieldToolTipsperferences["English"]["id"] = "";
	$fieldLabelsperferences["English"]["value"] = "Value";
	$fieldToolTipsperferences["English"]["value"] = "";
	$fieldLabelsperferences["English"]["perferences_name"] = "Perferences Name";
	$fieldToolTipsperferences["English"]["perferences_name"] = "";
	$fieldLabelsperferences["English"]["title"] = "Title";
	$fieldToolTipsperferences["English"]["title"] = "";
	if (count($fieldToolTipsperferences["English"])){
		$tdataperferences[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsperferences["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsperferences["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsperferences["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsperferences["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsperferences["Chinese (Hong Kong S.A.R.)"]["value"] = "Value";
	$fieldToolTipsperferences["Chinese (Hong Kong S.A.R.)"]["value"] = "";
	$fieldLabelsperferences["Chinese (Hong Kong S.A.R.)"]["perferences_name"] = "Perferences Name";
	$fieldToolTipsperferences["Chinese (Hong Kong S.A.R.)"]["perferences_name"] = "";
	$fieldLabelsperferences["Chinese (Hong Kong S.A.R.)"]["title"] = "Title";
	$fieldToolTipsperferences["Chinese (Hong Kong S.A.R.)"]["title"] = "";
	if (count($fieldToolTipsperferences["Chinese (Hong Kong S.A.R.)"])){
		$tdataperferences[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsperferences["Chinese (Taiwan)"]=array();
	$fieldToolTipsperferences["Chinese (Taiwan)"]=array();
	$fieldLabelsperferences["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsperferences["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsperferences["Chinese (Taiwan)"]["value"] = "Value";
	$fieldToolTipsperferences["Chinese (Taiwan)"]["value"] = "";
	$fieldLabelsperferences["Chinese (Taiwan)"]["perferences_name"] = "Perferences Name";
	$fieldToolTipsperferences["Chinese (Taiwan)"]["perferences_name"] = "";
	$fieldLabelsperferences["Chinese (Taiwan)"]["title"] = "Title";
	$fieldToolTipsperferences["Chinese (Taiwan)"]["title"] = "";
	if (count($fieldToolTipsperferences["Chinese (Taiwan)"])){
		$tdataperferences[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsperferences["French"]=array();
	$fieldToolTipsperferences["French"]=array();
	$fieldLabelsperferences["French"]["id"] = "Id";
	$fieldToolTipsperferences["French"]["id"] = "";
	$fieldLabelsperferences["French"]["value"] = "Value";
	$fieldToolTipsperferences["French"]["value"] = "";
	$fieldLabelsperferences["French"]["perferences_name"] = "Perferences Name";
	$fieldToolTipsperferences["French"]["perferences_name"] = "";
	$fieldLabelsperferences["French"]["title"] = "Title";
	$fieldToolTipsperferences["French"]["title"] = "";
	if (count($fieldToolTipsperferences["French"])){
		$tdataperferences[".isUseToolTips"]=true;
	}
}


	
	$tdataperferences[".NCSearch"]=true;

	

$tdataperferences[".shortTableName"] = "perferences";
$tdataperferences[".nSecOptions"] = 0;
$tdataperferences[".recsPerRowList"] = 1;	
$tdataperferences[".tableGroupBy"] = "0";
$tdataperferences[".mainTableOwnerID"] = "";
$tdataperferences[".moveNext"] = 1;




$tdataperferences[".showAddInPopup"] = false;

$tdataperferences[".showEditInPopup"] = false;

$tdataperferences[".showViewInPopup"] = false;


$tdataperferences[".fieldsForRegister"] = array();

$tdataperferences[".listAjax"] = true;

	$tdataperferences[".audit"] = false;

	$tdataperferences[".locking"] = false;
	
$tdataperferences[".listIcons"] = true;
$tdataperferences[".edit"] = true;
$tdataperferences[".inlineEdit"] = true;
$tdataperferences[".view"] = true;

$tdataperferences[".exportTo"] = true;

$tdataperferences[".printFriendly"] = true;

$tdataperferences[".delete"] = true;

$tdataperferences[".showSimpleSearchOptions"] = true;

$tdataperferences[".showSearchPanel"] = true;


$tdataperferences[".isUseAjaxSuggest"] = true;

$tdataperferences[".rowHighlite"] = true;


// button handlers file names

$tdataperferences[".addPageEvents"] = false;

$tdataperferences[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdataperferences[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdataperferences[".isUseTimeForSearch"] = false;

$tdataperferences[".isUseiBox"] = false;



$tdataperferences[".isUseInlineAdd"] = true;

$tdataperferences[".isUseInlineEdit"] = true;
$tdataperferences[".isUseInlineJs"] = $tdataperferences[".isUseInlineAdd"] || $tdataperferences[".isUseInlineEdit"];

$tdataperferences[".allSearchFields"] = array();

$tdataperferences[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataperferences[".allSearchFields"]))
{
	$tdataperferences[".allSearchFields"][] = "id";	
}
$tdataperferences[".globSearchFields"][] = "value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("value", $tdataperferences[".allSearchFields"]))
{
	$tdataperferences[".allSearchFields"][] = "value";	
}
$tdataperferences[".globSearchFields"][] = "perferences_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("perferences_name", $tdataperferences[".allSearchFields"]))
{
	$tdataperferences[".allSearchFields"][] = "perferences_name";	
}
$tdataperferences[".globSearchFields"][] = "title";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("title", $tdataperferences[".allSearchFields"]))
{
	$tdataperferences[".allSearchFields"][] = "title";	
}


$tdataperferences[".googleLikeFields"][] = "id";
$tdataperferences[".googleLikeFields"][] = "value";
$tdataperferences[".googleLikeFields"][] = "perferences_name";
$tdataperferences[".googleLikeFields"][] = "title";



$tdataperferences[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataperferences[".allSearchFields"])) 
{
	$tdataperferences[".allSearchFields"][] = "id";	
}
$tdataperferences[".advSearchFields"][] = "value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("value", $tdataperferences[".allSearchFields"])) 
{
	$tdataperferences[".allSearchFields"][] = "value";	
}
$tdataperferences[".advSearchFields"][] = "perferences_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("perferences_name", $tdataperferences[".allSearchFields"])) 
{
	$tdataperferences[".allSearchFields"][] = "perferences_name";	
}
$tdataperferences[".advSearchFields"][] = "title";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("title", $tdataperferences[".allSearchFields"])) 
{
	$tdataperferences[".allSearchFields"][] = "title";	
}

$tdataperferences[".isTableType"] = "list";


	

$tdataperferences[".isDisplayLoading"] = true;

$tdataperferences[".isResizeColumns"] = false;





$tdataperferences[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataperferences[".strOrderBy"] = $gstrOrderBy;
	
$tdataperferences[".orderindexes"] = array();

$tdataperferences[".sqlHead"] = "SELECT id,   `value`,   perferences_name,   title";
$tdataperferences[".sqlFrom"] = "FROM perferences";
$tdataperferences[".sqlWhereExpr"] = "";
$tdataperferences[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataperferences[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataperferences[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdataperferences[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "perferences";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataperferences["id"]=$fdata;
//	value
	$fdata = array();
	$fdata["strName"] = "value";
	$fdata["ownerTable"] = "perferences";
		$fdata["Label"]="Value"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "value";
	
		$fdata["FullName"]= "`value`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataperferences["value"]=$fdata;
//	perferences_name
	$fdata = array();
	$fdata["strName"] = "perferences_name";
	$fdata["ownerTable"] = "perferences";
		$fdata["Label"]="Perferences Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "perferences_name";
	
		$fdata["FullName"]= "perferences_name";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataperferences["perferences_name"]=$fdata;
//	title
	$fdata = array();
	$fdata["strName"] = "title";
	$fdata["ownerTable"] = "perferences";
		$fdata["Label"]="Title"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "title";
	
		$fdata["FullName"]= "title";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataperferences["title"]=$fdata;

	
$tables_data["perferences"]=&$tdataperferences;
$field_labels["perferences"] = &$fieldLabelsperferences;
$fieldToolTips["perferences"] = &$fieldToolTipsperferences;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["perferences"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["perferences"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto526=array();
$proto526["m_strHead"] = "SELECT";
$proto526["m_strFieldList"] = "id,   `value`,   perferences_name,   title";
$proto526["m_strFrom"] = "FROM perferences";
$proto526["m_strWhere"] = "";
$proto526["m_strOrderBy"] = "";
$proto526["m_strTail"] = "";
$proto527=array();
$proto527["m_sql"] = "";
$proto527["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto527["m_column"]=$obj;
$proto527["m_contained"] = array();
$proto527["m_strCase"] = "";
$proto527["m_havingmode"] = "0";
$proto527["m_inBrackets"] = "0";
$proto527["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto527);

$proto526["m_where"] = $obj;
$proto529=array();
$proto529["m_sql"] = "";
$proto529["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto529["m_column"]=$obj;
$proto529["m_contained"] = array();
$proto529["m_strCase"] = "";
$proto529["m_havingmode"] = "0";
$proto529["m_inBrackets"] = "0";
$proto529["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto529);

$proto526["m_having"] = $obj;
$proto526["m_fieldlist"] = array();
						$proto531=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "perferences"
));

$proto531["m_expr"]=$obj;
$proto531["m_alias"] = "";
$obj = new SQLFieldListItem($proto531);

$proto526["m_fieldlist"][]=$obj;
						$proto533=array();
			$obj = new SQLField(array(
	"m_strName" => "value",
	"m_strTable" => "perferences"
));

$proto533["m_expr"]=$obj;
$proto533["m_alias"] = "";
$obj = new SQLFieldListItem($proto533);

$proto526["m_fieldlist"][]=$obj;
						$proto535=array();
			$obj = new SQLField(array(
	"m_strName" => "perferences_name",
	"m_strTable" => "perferences"
));

$proto535["m_expr"]=$obj;
$proto535["m_alias"] = "";
$obj = new SQLFieldListItem($proto535);

$proto526["m_fieldlist"][]=$obj;
						$proto537=array();
			$obj = new SQLField(array(
	"m_strName" => "title",
	"m_strTable" => "perferences"
));

$proto537["m_expr"]=$obj;
$proto537["m_alias"] = "";
$obj = new SQLFieldListItem($proto537);

$proto526["m_fieldlist"][]=$obj;
$proto526["m_fromlist"] = array();
												$proto539=array();
$proto539["m_link"] = "SQLL_MAIN";
			$proto540=array();
$proto540["m_strName"] = "perferences";
$proto540["m_columns"] = array();
$proto540["m_columns"][] = "id";
$proto540["m_columns"][] = "value";
$proto540["m_columns"][] = "perferences_name";
$proto540["m_columns"][] = "title";
$obj = new SQLTable($proto540);

$proto539["m_table"] = $obj;
$proto539["m_alias"] = "";
$proto541=array();
$proto541["m_sql"] = "";
$proto541["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto541["m_column"]=$obj;
$proto541["m_contained"] = array();
$proto541["m_strCase"] = "";
$proto541["m_havingmode"] = "0";
$proto541["m_inBrackets"] = "0";
$proto541["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto541);

$proto539["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto539);

$proto526["m_fromlist"][]=$obj;
$proto526["m_groupby"] = array();
$proto526["m_orderby"] = array();
$obj = new SQLQuery($proto526);

$queryData_perferences = $obj;
$tdataperferences[".sqlquery"] = $queryData_perferences;

$tableEvents["perferences"] = new eventsBase;

?>
